package com.youdoneed.community.group.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.youdoneed.community.group.entity.Forumuserinforumgroup;
@Mapper
public interface ForumuserinforumgroupMapper {
    int deleteByPrimaryKey(String userInForumGroupId);

    int insert(Forumuserinforumgroup record);

    int insertSelective(Forumuserinforumgroup record);

    Forumuserinforumgroup selectByPrimaryKey(String userInForumGroupId);

    int updateByPrimaryKeySelective(Forumuserinforumgroup record);

    int updateByPrimaryKey(Forumuserinforumgroup record);
    
    List<Forumuserinforumgroup> selectByGroupId(String groupId);
    
    int deleteByUserIdAndGroupId(@Param("userId")String userId,@Param("groupId")String groupId);
    
    Forumuserinforumgroup selectByUserIdAndGroupId(@Param("userId")String userId,@Param("groupId")String groupId);
    
    int deleteByForumgroupId(String forumgroupId);
    
    List<Forumuserinforumgroup> selectForumgroupIdByChatSetting(String userId);
    
}